package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysWorkLogWorklistMapper;
import com.ruoyi.system.domain.SysWorkLogWorklist;
import com.ruoyi.system.service.ISysWorkLogWorklistService;

/**
 * 日志工作安排Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-07
 */
@Service
public class SysWorkLogWorklistServiceImpl implements ISysWorkLogWorklistService 
{
    @Autowired
    private SysWorkLogWorklistMapper sysWorkLogWorklistMapper;

    /**
     * 查询日志工作安排
     * 
     * @param id 日志工作安排ID
     * @return 日志工作安排
     */
    @Override
    public SysWorkLogWorklist selectSysWorkLogWorklistById(Long id)
    {
        return sysWorkLogWorklistMapper.selectSysWorkLogWorklistById(id);
    }

    /**
     * 查询日志工作安排列表
     * 
     * @param sysWorkLogWorklist 日志工作安排
     * @return 日志工作安排
     */
    @Override
    public List<SysWorkLogWorklist> selectSysWorkLogWorklistList(SysWorkLogWorklist sysWorkLogWorklist)
    {
        return sysWorkLogWorklistMapper.selectSysWorkLogWorklistList(sysWorkLogWorklist);
    }

    /**
     * 新增日志工作安排
     * 
     * @param sysWorkLogWorklist 日志工作安排
     * @return 结果
     */
    @Override
    public int insertSysWorkLogWorklist(SysWorkLogWorklist sysWorkLogWorklist)
    {
        return sysWorkLogWorklistMapper.insertSysWorkLogWorklist(sysWorkLogWorklist);
    }

    /**
     * 修改日志工作安排
     * 
     * @param sysWorkLogWorklist 日志工作安排
     * @return 结果
     */
    @Override
    public int updateSysWorkLogWorklist(SysWorkLogWorklist sysWorkLogWorklist)
    {
        return sysWorkLogWorklistMapper.updateSysWorkLogWorklist(sysWorkLogWorklist);
    }

    /**
     * 批量删除日志工作安排
     * 
     * @param ids 需要删除的日志工作安排ID
     * @return 结果
     */
    @Override
    public int deleteSysWorkLogWorklistByIds(Long[] ids)
    {
        return sysWorkLogWorklistMapper.deleteSysWorkLogWorklistByIds(ids);
    }

    /**
     * 删除日志工作安排信息
     * 
     * @param id 日志工作安排ID
     * @return 结果
     */
    @Override
    public int deleteSysWorkLogWorklistById(Long id)
    {
        return sysWorkLogWorklistMapper.deleteSysWorkLogWorklistById(id);
    }
}
